<?
$action = new Action();
class Action
{
	function Action()
	{
		global $gSmarty,$gAct,$INCOME;
		$gSmarty->assign("username",$_SESSION['adminUser']['name']);
		$gSmarty->assign("role",$_SESSION['adminUser']['roleName']);
		if($_SESSION['adminUser']['roleId']==3)
		{
			$gSmarty->display($gAct."f.tpl");
		}
		else
		{
			if($INCOME['f']==1)
			{
				$gSmarty->display($gAct."f.tpl");
			}
			else
			{
				$gSmarty->display($gAct.".tpl");
			}
		}
	}
}
?>